<template>
  <div>
    <div class="pic">
      <slot name="bannerimg"></slot>
      <p class="text desc">{{ title }}</p>
      <p class="qualityLify desc">{{ desc }}</p>
    </div>
    <p class="homeTitle">{{ title }}</p>
    <slot name="homegood"></slot>
  </div>
</template>

<script>
export default {
  props: ["title", "desc"],
};
</script>

<style lang="less" scoped>
.pic {
  position: relative;
  height: 170px;
  .bannerImg {
    img {
      width: 534px;
      height: 170px;
      margin-left: 15px;
    }
  }
  .desc {
    position: absolute;
    left: 50%;
    font-weight: 700;
    transform: translateX(-50%);
  }
  .text {
    top: 30px;
    line-height: 60px;
    font-size: 40px;
    border-bottom: 2px solid #fff;
    color: #fff;
    letter-spacing: 5px;
  }
  .qualityLify {
    color: #e55231;
    font-size: 24px;
    top: 100px;
    padding: 0 18px;
    line-height: 32px;
    background-color: #fff;
  }
}
.homeTitle {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin: 22px 0 20px 15px;
}
.goodsName {
  margin-top: 10px;
}
</style>